package com.ideaaedi.log4j2.defender;

import com.alibaba.fastjson.JSON;
import com.ideaaedi.log4j2.defender.model.MyAbc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@Slf4j
@SpringBootApplication
public class TmpApplication implements ApplicationRunner {
    
    public static void main(String[] args) {
        SpringApplication.run(TmpApplication.class, args);
    }
    
    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("启动类：" + JSON.toJSONString(MyAbc.builder().name("邓二洋").account("这是谁的部将").build()));
    }
}
